Change in openvpn[master]: crypto: Add more explicit casts for OpenBSD
A message that is not in the archive (sent off-list or not yet received): gerrit.1759766819000.Ia93bd8874e1b578d553720eedc274b974a462483@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1252?usp=email
to review the following change.
Change subject: crypto: Add more explicit casts for OpenBSD
......................................................................
crypto: Add more explicit casts for OpenBSD
The compiler on OpenBSD is a bit more zealous
about these strlen's even though these are
static values that can be determined at
compile time...
This was missed in the previous commit
("crypto: Make some casts to int explicit")
because we don't use -Werror on OpenBSD, yet.
---
M src/openvpn/crypto.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/52/1252/1
src/openvpn/crypto.c +2 -2
@@ -1361,8 +1361,8 @@int state =PARSE_INITIAL ;/* constants */ -const int hlen =strlen (static_key_head); -const int flen =strlen (static_key_foot); +const int hlen = (int )strlen (static_key_head); +const int flen = (int )strlen (static_key_foot);const int onekeylen =sizeof (key2->keys[0 ]);CLEAR (*key2);
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1252?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia93bd8874e1b578d553720eedc274b974a462483
Gerrit-Change-Number: 1252
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1252?usp=email )
Change subject: crypto: Add more explicit casts for OpenBSD
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1252?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia93bd8874e1b578d553720eedc274b974a462483
Gerrit-Change-Number: 1252
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 06 Oct 2025 17:03:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 crypto: Add more explicit casts for OpenBSD
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
The compiler on OpenBSD is a bit more zealous
about these strlen's even though these are
static values that can be determined at
compile time...
This was missed in the previous commit
("crypto: Make some casts to int explicit")
because we don't use -Werror on OpenBSD, yet.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1252
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1252
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/crypto.c +2 -2
@@ -1361,8 +1361,8 @@int state =PARSE_INITIAL ;/* constants */ -const int hlen =strlen (static_key_head); -const int flen =strlen (static_key_foot); +const int hlen = (int )strlen (static_key_head); +const int flen = (int )strlen (static_key_foot);const int onekeylen =sizeof (key2->keys[0 ]);CLEAR (*key2);
flichtenheld has abandoned this change. ( http://gerrit.openvpn.net/c/openvpn/+/1252?usp=email )
Change subject: crypto: Add more explicit casts for OpenBSD
......................................................................
Abandoned
can be squashed into other commit
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1252?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: abandon
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ia93bd8874e1b578d553720eedc274b974a462483
Gerrit-Change-Number: 1252
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>